package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type TopChatRequest struct {
	ActivityId *int64 `json:"ActivityId"`
	ChatId     *int64 `json:"ChatId"`
	TopStatus  *int32 `json:"TopStatus"`
}
type TopChatResponse struct {
	Status bool `json:"Status"`
}

func (instance *Instance) TopChat(data *TopChatRequest) (*TopChatResponse, error) {
	d := request.Data{
		Action: "TopChatAPI",
	}
	bindBody(&d, *data)
	var res TopChatResponse
	err := instance.post(&d, &res)
	return &res, err
}
